﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using StripeOne.Blog.Models.Partials;

namespace StripeOne.Blog.Models
{
    public class PostModel
    {
        public int Id { get; set; }
        public string Title { get; set; }
        public string Post { get; set; }
        public string Digest { get; set; }
        public DateTime PublishDate { get; set; }
        public bool CommentsDisabled { get; set; }
        
        public DatepickerModel Datepicker { get; set; }

        public PostModel()
        {
            this.PublishDate = DateTime.Now;

            this.Datepicker = new DatepickerModel();
            this.Datepicker.Id = "datepickerPublish";
            this.Datepicker.Name = "publishDate";
            this.Datepicker.Value = DateTime.Now.ToString("dd/MM/yyyy");
            this.Datepicker.ShowCalendarIcon = false;
        }
    }
}